import { http } from '@/utils/http'
import type { CategoryTopItem } from '@/types/category'

// 获取左侧一级分类列表（tab项数据）
export const getCategoryTopAPI = () =>
  http<CategoryTopItem[]>({
    url: '/category/top',
    method: 'GET',
  })
